import React from 'react' 
import  propTypes from 'prop-types'

export default class App extends React.Component {
    render () {
        return (
            <div 
                style={{padding:30}}
            >
                {this.props.number}---{this.props.array}--{this.props.boolean.toString()}

            </div>
        )
    }
}


App.propTypes = {
    number:propTypes.number,
    array:propTypes.array,
    boolean:propTypes.bool
}

// 当前页面的类组件  传参的props默认  值
App.defaultProps = {
    number:100000
}